<template>
  <div class="box">
    <div id="one-box">
      <div v-if="!userInfo" class="n-pglg">
        <div class="pic">
          <h2>登录网易云音乐</h2>
          <div class="btn" @click="SET_CHANGE_LOGIN_DIALOG()"></div>
        </div>
      </div>
      <div v-else class="content">
        <MenuSelect />
      </div>
    </div>
  </div>
</template>

<script>
import {mapGetters,mapActions} from 'vuex'
import MenuSelect from './MenuSelect'
export default {
  name: "myMusic",
  components: {
    MenuSelect
  },
  computed: {
    ...mapGetters(["userInfo"]),
  },
  methods: {
    ...mapActions("common", ["SET_CHANGE_LOGIN_DIALOG"]),
  },
};
</script>

<style lang="scss" scoped>
#one-box{
  padding:0;
  display: flex;
  .content{
    flex:1;
    display: flex;
  }
}
.box {
  margin-top: 5px;
}
.n-pglg {
  background-image: url(../../assets/img/myMusic-nologin-bgi.png);
  background-repeat: no-repeat;
  // height:372px;
  // background-size: 100% 100%;
  width: 807px;
  height: 268px;
  margin: 0 auto 0;
  padding-top: 104px;
  background-position: 0 104px;
}
.n-pglg h2 {
  height: 100px;
  text-indent: -9999px;
}
.n-pglg .btn {
  cursor: pointer;
  display: block;
  width: 167px;
  height: 45px;
  margin: 102px 0 0 482px;
}
.n-pglg .btn:hover {
  background: url(../../assets/img/myMusic-nologin-bgi.png) no-repeat 0 -278px;
}
</style>